<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<c:set value="${pageContext.request.contextPath }" var="cPath"></c:set>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<title>Insert title here</title>
</head>
<SCRIPT type="text/javascript">
<c:if test="${!empty msg }">
alert("${msg }");
</c:if>
</SCRIPT>
<body>
	<div id="board" align="center">
	<div id="imgt">
	<img src="${cPath }/css/b1.png" width="35%" align="left"><br>
	</div>
		<TABLE>
			<thead>
				<tr>
					<th>벗집번호</th>
					<th>벗집이름</th>
					<th>벗집전화번호</th>
					<th>벗집메세지</th>
				</tr>
			</thead>
			<TBODY>
				<c:url var="shopView" value="/shopView.do" />
				<c:forEach var="shop" items="${shopList }">
				<tr>
					<td width="8%">${shop.sh_no }</td>
					<td width="62%" id="left">
					<a href="${shopView }?sh_no=${shop.sh_no}">${shop.sh_name }</a></td>
					<td width="10%">${shop.sh_phone }</td>
					<td width="20%">${shop.sh_message }</td>
				</tr>
				</c:forEach>
			</TBODY>
		</TABLE>
		<div id="pagingNew">
	${formDTO.pagingHTML }
	</div>
		<br><br>
<input type="button" value="벗집등록" onclick="window.location.href='${cPath}/shopForm.do'" />
	</div>
<SCRIPT type="text/javascript">
function goPage(currPage) {
	window.location.href="${cPath}/shopList.do?currentPage="+currPage;
}
</SCRIPT>
</body>
</html>